home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 7 / BBS in a Box - Macintosh - Volume VII (BBS in a Box) (January 1993).iso / Files / Prog / T / Thinkcup.cpt / TCL Update / TCL Update Diffs / CEditText.c.Diff < prev    next >
Encoding:
Text File  |  1990-02-27  |  2.0 KB  |  57 lines  |  [TEXT/MPS ]

  1. File #1: Roy G. Biv:C TCL patch ƒ:new files:CEditText.c
  2. File #2: Roy G. Biv:C TCL patch ƒ:old files:CEditText.c
  3.  
  4. Extra lines in 1st before 23 in 2nd (File "Roy G. Biv:C TCL patch ƒ:new files:CEditText.c"; Line 23; File "Roy G. Biv:C TCL patch ƒ:old files:CEditText.c"; Line Δ23)
  5.   23    extern CBureaucrat  *gGopher;   /* Altered by TCL Weaver version 1.0 (2/21/90) */
  6.  
  7.  
  8. Extra lines in 1st before 260 in 2nd (File "Roy G. Biv:C TCL patch ƒ:new files:CEditText.c"; Line 261:267; File "Roy G. Biv:C TCL patch ƒ:old files:CEditText.c"; Line Δ260)
  9.  261        /* Altered by TCL Weaver version 1.0 (2/21/90) */
  10.  262        
  11.  263        if (gEditText != this) {
  12.  264            gEditText->Deactivate();
  13.  265            Activate();
  14.  266            gGopher = this;
  15.  267        }
  16.  
  17.  
  18. Nonmatching lines (File "Roy G. Biv:C TCL patch ƒ:new files:CEditText.c"; Line 283:312; File "Roy G. Biv:C TCL patch ƒ:old files:CEditText.c"; Line 275:278)
  19.  283        /* Altered by TCL Weaver version 1.0 (2/21/90) */
  20.  284        
  21.  285        Point   thePosition;
  22.  286        long    theHExtent, theVExtent;
  23.  287        
  24.  288        switch (keyCode) {
  25.  289        
  26.  290            case KeyHome:
  27.  291            case KeyPageUp:
  28.  292            case KeyPageDown:
  29.  293                 inherited::DoKeyDown(theChar, keyCode, macEvent);
  30.  294                 break;
  31.  295                 
  32.  296            case KeyEnd:
  33.  297                if (itsScrollPane != NULL) {
  34.  298                    GetExtent(&theHExtent, &theVExtent);
  35.  299                    thePosition.h = 0;
  36.  300                    thePosition.v = Max(0, theVExtent - itsScrollPane->vSpan);
  37.  301                    ScrollTo(thePosition, TRUE);
  38.  302                    itsScrollPane->Calibrate();
  39.  303                }
  40.  304                break;
  41.  305                
  42.  306            default: 
  43.  307                Prepare();
  44.  308                TEKey(theChar, macTE);
  45.  309                AdjustBounds();
  46.  310                ScrollToSelection();
  47.  311                break;
  48.  312        }
  49.  
  50.  275        Prepare();
  51.  276        TEKey(theChar, macTE);
  52.  277        AdjustBounds();
  53.  278        ScrollToSelection();
  54.  
  55.  
  56. *** EOF on both files at the same time ***
  57.